Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Scripting Additions Guide /
Chapter 2 - Scripting Addition Commands / Command Definitions
/


ASCII Number

The ASCII Number command returns the ASCII number associated with a specified character. It is one of several commands provided by the String Commands scripting addition.

SYNTAX
ASCII number string 
PARAMETER
string
An ASCII character.
Class: String
RESULT
The ASCII number that corresponds to the specified character.

EXAMPLES
ASCII number "d"--result: 100
ASCII number "e"--result: 101
ERRORS
Error
number
Error message
-108Out of memory.
-1700Can't make some data into the expected type.
-1701Some parameter is missing for <commandName>.
-1704Some parameter was invalid.
-1705Operation involving a list item failed.
-1715Some parameter wasn't understood.
-1718Reply has not yet arrived.
-1720Invalid range.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
18 DEC 1996